<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>

<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Home - BioCode</title>

</head>
<body>
<div id="main">
    <div class="content-container">


        <c:forEach items="${categoryTrees}" var="categoryTree">
        <div class="category-card">
            <a href="${host}/categories/${categoryTree.root.id}">${categoryTree.root.name}</a>
            <ul>
                <c:forEach items="${categoryTree.childs}" var="category"  begin="0" end="4">
                            <c:if test="${1==1}">
                                <li><a href="/biocode/categories/115">${category.name}</a></li>
                            </c:if>
                </c:forEach>
            </ul>
        </div>
        </c:forEach>
    </div>


</div>


</body>
</html>
